package com.bruce.web.controller;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author luotuan
 * @Description
 * @create 2020-04-13 20:31
 **/
@RestController
@RequestMapping("/test")
public class TestController {
    @RequestMapping("getDate")
    public void dateTest(Date date){
        System.out.println(date);
    }
    @RequestMapping("getDate2")
    public Date dateTest(){
        return new Date();
    }
    @RequestMapping(value = "/patch",method = {RequestMethod.PATCH})
    public String testPatch(@RequestBody String msgBody){
        return "收到请求报文";
    }

    public static void main(String[] args) {
        String ss = "\"parProdAttrNbr\": \"\",\n" +
                "\t\t\t\t\t\t\"parProdAttrId\": \"\",";

    }
}
